#include <iostream>
#include "MutableArray.hpp"
#include "MutableDoubleList.hpp"
using namespace std;

int main()
{
    // MutableArray<int> * mutableArray = new MutableArray<int>();
    
    // for(int idx = 0; idx < 10; idx++)
    // {
    //     mutableArray->add(idx);
    // }
    // cout << mutableArray->str() << endl;

    // mutableArray->add(3, 1);
    // cout << mutableArray->str() << endl;

    // mutableArray->remove(3);
    // cout << mutableArray->str() << endl;

    // cout << mutableArray->removeElement(3) << mutableArray->str() << endl;
    // mutableArray->clear();
    // cout << mutableArray->str() << endl;
    MutableDoubleList<int> * mutableDoubleList = new MutableDoubleList<int>();
    int a[10] = {4,9,6,1,22,98,32,44,3,17};
    for(int idx = 0; idx < 10; idx++)
    {
        mutableDoubleList->add(a[idx]);
    }
    cout << mutableDoubleList->str() << endl;
    mutableDoubleList->removeElement(22);
    cout << mutableDoubleList->str() << endl;
    mutableDoubleList->clear();
    cout << mutableDoubleList->str() << endl;
    // mutableArray->sort();
    // cout << mutableArray->str() << endl;
    // cout << mutableArray->length() << endl;
    return EXIT_SUCCESS;
}